<?php

class Player
{
	private $id;			// (int), PlayerId
	private $user;			// (User)
	private $cards;			// (string), The players Cards
	private $turnFinished;	// (bool), Current game turn finished?
	private $robot;			// (Robot), Robot for the current turn.
	private $previousRobot;	// (Robot), Robot for the previous turn.

	public function __construct( $id, $user, $cards, $turnFinished, $robot, $previousRobot )
	{
		$this->id = $id;
		$this->user = $user;
		$this->cards = $cards;
		$this->turnFinished = $turnFinished;
		$this->robot = $robot;
		$this->previousRobot = $previousRobot;
	}

	public function id()
	{
		return $this->id;
	}

	public function user()
	{
		return $this->user;
	}

	public function cards()
	{
		return $this->cards;
	}

	public function turnFinished()
	{
		return $this->turnFinished;
	}

	public function robot()
	{
		return $this->robot;
	}

	public function previousRobot()
	{
		return $this->previousRobot;
	}
}
